package pta.newch04.ex13;

import java.util.Arrays;
import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        double dd = RR.fun();
        System.out.printf("%.2f",dd);
    }
}
class RR{
    public static double fun(){
        Scanner scanner = new Scanner(System.in);
        double[] nums = new double[5];
        for (int i = 0; i < 5; i++) {
            nums[i] = scanner.nextDouble();
        }
        Arrays.sort(nums);
        return nums[2];
    }
}